package com.heiyu.dao;

import com.heiyu.entity.BaseEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by mountain on 18/6/11.
 */
public interface BaseMapper<T extends BaseEntity> {
    List<T> selectList(T entity);

    T selectPrimary(Long key);

    Integer updateById(T entity);

    Integer update(Map<String, Object> map);

    Integer insert(T entity);

    Integer delete(Object key);

    Integer batchDelete(List keys);

    Integer count(Map<String, Object> param);

    List<T> page(Map<String, Object> param);
}
